package com.nancy.ioc.FactoryBean;

import com.nancy.ioc.Bean;
import org.springframework.beans.factory.FactoryBean;

/**
 * bean 装饰工厂
 * @author  zhou.guangfeng on 2019/4/25 下午6:07
 */
public class DecorationFactoryBean implements FactoryBean<Bean> {

    @Override
    public Bean getObject() throws Exception {
        Bean bean = new Bean() ;
        bean.setName("在FactoryBean统一处理属性") ;
        return bean;
    }

    @Override
    public Class<?> getObjectType() {
        return Bean.class;
    }

}
